Skip to content

🐛 Small fixes for CX_VALUE and friends#247

Merged
lukevalenty merged 1 commit intointel:mainfrom
elbeno:cx-fixes
Jul 10, 2025
Merged

🐛 Small fixes for CX_VALUE and friends#247
lukevalenty merged 1 commit intointel:mainfrom
elbeno:cx-fixes

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 10, 2025

Problem:

  • CX_VALUE without a capture clause is important for use cases where the lambda has to be default constructible.
  • Naming the function type in the CX_WRAP macro causes shadowing warnings.

Solution:

  • Remove the default capture clause from CX_VALUE.
  • Leave the function unnamed in CX_WRAP.

Problem:
- `CX_VALUE` without a capture clause is important for use cases where the
  lambda has to be default constructible.
- Naming the function type in the `CX_WRAP` macro causes shadowing warnings.

Solution:
- Remove the default capture clause from `CX_VALUE`.
- Leave the function unnamed in `CX_WRAP`.
@lukevalenty lukevalenty enabled auto-merge July 10, 2025 22:24
@lukevalenty lukevalenty merged commit b325dd5 into intel:main Jul 10, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants